/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.vce.election.domain;

import com.vce.Audit;
import com.vce.Persistent;
import java.util.*;

/**
 *
 * @author Ggutierrez
 */
public class Document implements Persistent{
    private Long id;
    private ElectionType electionType;
    private Counting counting;
    private Round round;
    private Jrv jrv;
    private Set<Vote> votes = new HashSet<Vote>();
    private Float depositedVotes;
    private Float validVotes;
    private Float nullVotes;
    private Float calcDepositedVotes;
    private Float calcValidVotes;
    private Date countBegin;
    private Date countEnd;
    private String observations;
    private Set<Impugnment> impugnments = new HashSet<Impugnment>();
    private List<Fiscal> fiscals = new ArrayList<Fiscal>();
    private Audit audit;
    private Long regSeq;
    private boolean impugnada = false;
    private boolean withoutDoc = false;
    private List<Member> members = new ArrayList<Member>();
    private boolean revision = false;
    private BallotCentre ballotCentre;    
    private Long regSeqSample;
    private Town town;  
    
    public Document() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public ElectionType getElectionType() {
        return electionType;
    }

    public void setElectionType(ElectionType electionType) {
        this.electionType = electionType;
    }

    public Counting getCounting() {
        return counting;
    }

    public void setCounting(Counting counting) {
        this.counting = counting;
    }

    public Round getRound() {
        return round;
    }

    public void setRound(Round round) {
        this.round = round;
    }

    public Jrv getJrv() {
        return jrv;
    }

    public void setJrv(Jrv jrv) {
        this.jrv = jrv;
    }

    public Set<Vote> getVotes() {
        return votes;
    }

    public void setVotes(Set<Vote> votes) {
        this.votes = votes;
    }

    public Float getDepositedVotes() {
        return depositedVotes;
    }

    public void setDepositedVotes(Float depositedVotes) {
        this.depositedVotes = depositedVotes;
    }

    public Float getValidVotes() {
        return validVotes;
    }

    public void setValidVotes(Float validVotes) {
        this.validVotes = validVotes;
    }

    public Float getNullVotes() {
        return nullVotes;
    }

    public void setNullVotes(Float nullVotes) {
        this.nullVotes = nullVotes;
    }

    public Float getCalcDepositedVotes() {
        return calcDepositedVotes;
    }

    public void setCalcDepositedVotes(Float calcDepositedVotes) {
        this.calcDepositedVotes = calcDepositedVotes;
    }

    public Float getCalcValidVotes() {
        return calcValidVotes;
    }

    public void setCalcValidVotes(Float calcValidVotes) {
        this.calcValidVotes = calcValidVotes;
    }

    public Date getCountBegin() {
        return countBegin;
    }

    public void setCountBegin(Date countBegin) {
        this.countBegin = countBegin;
    }

    public Date getCountEnd() {
        return countEnd;
    }

    public void setCountEnd(Date countEnd) {
        this.countEnd = countEnd;
    }

    public String getObservations() {
        return observations;
    }

    public void setObservations(String observations) {
        this.observations = observations;
    }

    public Set<Impugnment> getImpugnments() {
        return impugnments;
    }

    public void setImpugnments(Set<Impugnment> impugnments) {
        this.impugnments = impugnments;
    }

    public List<Fiscal> getFiscals() {
        return fiscals;
    }

    public void setFiscals(List<Fiscal> fiscals) {
        this.fiscals = fiscals;
    }

    public Audit getAudit() {
        return audit;
    }

    public void setAudit(Audit audit) {
        this.audit = audit;
    }
    
    public void addVote(Vote vote) {
        votes.add(vote);
    }

    public Long getRegSeq() {
        return regSeq;
    }

    public void setRegSeq(Long regCount) {
        this.regSeq = regCount;
    }

    public boolean isImpugnada() {
        return impugnada;
    }

    public void setImpugnada(boolean impugnada) {
        this.impugnada = impugnada;
    }

    public boolean isWithoutDoc() {
        return withoutDoc;
    }

    public void setWithoutDoc(boolean withoutDoc) {
        this.withoutDoc = withoutDoc;
    }

    public List<Member> getMembers() {
        return members;
    }

    public void setMembers(List<Member> members) {
        this.members = members;
    }

    public boolean isRevision() {
        return revision;
    }

    public void setRevision(boolean revision) {
        this.revision = revision;
    }

    public BallotCentre getBallotCentre() {
        return ballotCentre;
    }

    public void setBallotCentre(BallotCentre ballotCentre) {
        this.ballotCentre = ballotCentre;
    }

    public Long getRegSeqSample() {
        return regSeqSample;
    }

    public void setRegSeqSample(Long regSeqSample) {
        this.regSeqSample = regSeqSample;
    }

    public Town getTown() {
        return town;
    }

    public void setTown(Town town) {
        this.town = town;
    }
}
